package com.wxp.controller.mall;

import com.wxp.controller.BaseController;
import com.wxp.service.PlannedCurrentLimitationService;
import com.wxp.util.IData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * 钉钉-智能填表-计划限流
 */
@Controller
@RequestMapping(value = "planCurrLimi")
public class PlannedCurrentLimitationController extends BaseController {

    @Autowired
    private PlannedCurrentLimitationService planCurrLimiService;

    /**
     * 获取“计划限流”列表
     * @return
     */
    @RequestMapping(value = "getPlanCurrLimiList")
    @ResponseBody
    public Object getPlanCurrLimiList() throws Exception {
        IData idata = IData.getInstance(request);
        List<IData> datas = planCurrLimiService.getPlanCurrLimiList(idata);
        return datas;
    }
}
